package com.bean;

public class DeptBean {
	private Integer deptNo;
	private String dname;
	private String loc;

	@Override
	public String toString() {
		return "DeptBean [deptNo=" + deptNo + ", dname=" + dname + ", loc=" + loc + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((deptNo == null) ? 0 : deptNo.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		DeptBean other = (DeptBean) obj;
		if (deptNo == null) {
			if (other.deptNo != null)
				return false;
		} else if (!deptNo.equals(other.deptNo))
			return false;
		return true;
	}

	public Integer getDeptNo() {
		return deptNo;
	}

	public void setDeptNo(java.math.BigDecimal deptNo) {
		if(deptNo!=null)
		this.deptNo = deptNo.intValue();
	}

	public String getDname() {
		return dname;
	}

	public void setDname(String dname) {
		this.dname = dname;
	}

	public String getLoc() {
		return loc;
	}

	public void setLoc(String loc) {
		this.loc = loc;
	}

}
